package com.shiguiwu.springmybatis.spring.cycle;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description: 母亲
 * @author: stone
 * @date: Created by 2021/4/28 11:40
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.spring.cycle
 */
@Service
public class Mather {

    @Getter
    private Father father;

    @Autowired
    public void setFather(Father father) {
        this.father = father;
    }

    public void method2() {
        System.out.println("mather of method");
        father.method1();
    }
}
